package edu.uaskl.jqf.model.gates;

import edu.uaskl.jqf.model.gates.util.BaseGate;
import edu.uaskl.jqf.model.matrix.MatrixComplex;
import edu.uaskl.jqf.model.matrix.MatrixComplexQuadraticIdentity;

public class Identity extends BaseGate {
    @Override
    public MatrixComplex getInstance() {
        return MatrixComplexQuadraticIdentity.size2;
    }

    @Override
    public MatrixComplex getSize(final int size) {
        if (size == 2)
            return MatrixComplexQuadraticIdentity.size2;
        return new MatrixComplexQuadraticIdentity(size);
    }
}